<template>
  <div class="app-fixed-layer" @click="handler($event)">
    <slot></slot>
  </div>
</template>

<script>
  export default {
    name: 'BottomLayer',
    methods: {
      handler (e) {
        this.$emit('click', e)
      }
    }
  }
</script>

<style scoped lang="scss">
  @import "../assets/css/px2rem";
  @import "../assets/css/variable";

  .app-fixed-layer{
    position: fixed;
    left: 0;
    bottom:0;
    width:100%;
    height: px2rem($bottomHeight);
    text-align: center;
    line-height: px2rem($bottomHeight);
    color: white;
    font-size: 0.8rem;
    z-index: 0;
    background-color: white;
  }

  .bg-active{
    background-color: $theme-color-deep !important;
  }

</style>
